package net.hn.hnms.biz.safety.trinity.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Author: PanSX
 * Date: 2023/5/15 14:19
 */
@Data
@ApiModel("单位风险统计")
public class GroupLevelCount {

    @ApiModelProperty("重大风险（一级）")
    private Integer major = 0;

    @ApiModelProperty("较大风险（二级）")
    private Integer normalA = 0;

    @ApiModelProperty("一般风险（三级）")
    private Integer normalB = 0;

    @ApiModelProperty("低风险（四级）")
    private Integer normalC = 0;

    private List<MineLevelCount> mineLevelCountList=new ArrayList<>();

    @ApiModel("煤矿风险统计")
    @Data
    public class  MineLevelCount{

        private String mineName;
        private String companyName;
        private String mineCode;
        @ApiModelProperty("重大风险（一级）")
        private Integer major = 0;

        @ApiModelProperty("较大风险（二级）")
        private Integer normalA = 0;

        @ApiModelProperty("一般风险（三级）")
        private Integer normalB = 0;

        @ApiModelProperty("低风险（四级）")
        private Integer normalC = 0;
    }
}
